﻿using System.Windows.Forms;
using MobileCommissionManagement.Common;

namespace MobileCommissionManagement.Controls
{
    public partial class Zone : Form
    {
        private Zonas _zone;
        
        #region Properties

        public Controller Controller
        {
            set { operatorLookUpEdit.Properties.DataSource = value.Operators; }
        }

        public Zonas Document
        {
            set
            {
                _zone = value;
                zonasBindingSource.DataSource = _zone;
            }
            get { return _zone; }
        }

        #endregion

        public Zone()
        {
            InitializeComponent();
        }
    }
}
